import { defineStore } from "pinia"
import {ref} from 'vue'

export const useCouterStore = defineStore('counter',()=>{
      const count = ref(0)
      // const increase = ()=>{
      //  count.value = count.value++
      // }
      function increase(){
        count.value = count.value+ 1
      }
      return {
        count,
        increase
      }
},{
  persist: {
    paths: ['count']
  }
})

